package com.yanghang.service.impl;

import com.yanghang.dao.DeptDao;
import com.yanghang.entity.Dept;
import com.yanghang.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptDao dd;
    @Override
    @Transactional(readOnly = true)
    public Dept selectAllDeptInformationById(int deptId) { return dd.selectAllDeptInformationById(deptId);
    }
}
